package com.timothy.business.model;

import java.util.List;

import com.timothy.dao.entity.IdeaMenu;

/**
 * 菜单管理
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2016年9月18日 上午9:26:39
 */
public class SysMenuEntity extends IdeaMenu {

	private List<SysMenuEntity> subMenuList;

	public List<SysMenuEntity> getSubMenuList() {
		return subMenuList;
	}

	public void setSubMenuList(List<SysMenuEntity> subMenuList) {
		this.subMenuList = subMenuList;
	}

	public static SysMenuEntity createMenuEntity(IdeaMenu ideaMenu) {
		SysMenuEntity menuEntity = new SysMenuEntity();
		menuEntity.setMenuId(ideaMenu.getMenuId());
		menuEntity.setParentId(ideaMenu.getParentId());
		menuEntity.setName(ideaMenu.getName());
		menuEntity.setUrl(ideaMenu.getUrl());
		menuEntity.setPerms(ideaMenu.getPerms());
		menuEntity.setType(ideaMenu.getType());
		menuEntity.setIcon(ideaMenu.getIcon());
		menuEntity.setOrderNum(ideaMenu.getOrderNum());
		menuEntity.setStatus(ideaMenu.getStatus());
		return menuEntity;
	}
}
